﻿@{ 
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script src="@Url.Content("~/Scripts/focus.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/swfobject.js")" type="text/javascript"></script>
@*<script src="@Url.Content("~/Scripts/png.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/floatImg.js")" type="text/javascript"></script>
<script src="@Url.Content("~/content/js/tab.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/json2.js", true)" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/lrtk.js", true)" type="text/javascript"></script>
@*<script src="@Url.Content("~/Scripts/jquery.js", true)" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/swfobject_modified.js", true)" type="text/javascript"></script>
@Html.DevExpress().GetStyleSheets(


                        new StyleSheet { ExtensionType = ExtensionType.PopupControl, Theme = DevExpressHelper.Theme },
                          new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }


)
@Html.DevExpress().GetScripts(
             new Script { ExtensionType = ExtensionType.ListBox },

                            new Script { ExtensionType = ExtensionType.PopupControl }


    )
@using ElingOA6_DSJCJ.Models;
@using ElingOA6_DSJCJ.Common;
@using System.Data;
@model  Dictionary<string, List<DocumentGridModel>> 
@{ 
    List<DocumentGridModel> documentList = new List<DocumentGridModel>();
    List<ElingOA6_DSJCJ.Model.ConfigEntry> ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
    int entryCount = 0;
    string key = "";//系统配置关键字






    string jsAlert = ViewData["jsAlert"] != null ? ViewData["jsAlert"].ToString() : "";
    string empName = ViewData["EmpName"] == null ? "" : ViewData["EmpName"].ToString();
    string deptName = ViewData["DeptName"] == null ? "" : ViewData["DeptName"].ToString();
    List<ElingOA6_DSJCJ.Model.Config> configList = ViewData["configList"] == null ? new List<ElingOA6_DSJCJ.Model.Config>() : ViewData["configList"] as List<ElingOA6_DSJCJ.Model.Config>;
    List<ElingOA6_DSJCJ.Model.ConfigEntry> configEntryList = ViewData["configEntryList"] == null ? new List<ElingOA6_DSJCJ.Model.ConfigEntry>() : ViewData["configEntryList"] as List<ElingOA6_DSJCJ.Model.ConfigEntry>;
    Dictionary<string, string> zlOldDic = ViewData["zlOldDic"] == null ? new Dictionary<string, string>() : ViewData["zlOldDic"] as Dictionary<string, string>;
    string zhcsUrl = System.Configuration.ConfigurationManager.AppSettings["zhcsUrl"].ToString();



    string BirthNames = ViewData["BirthNames"] == null ? "" : ViewData["BirthNames"].ToString();//生日祝福显示
}
@helper  GetConfigShowText(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FShowText
        }

}
@helper  GetConfigValue(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FKeyValue
        }

}
@helper  GetConfigEntryShowText(string FDocClsCd, string keyName, string configClass, List<ElingOA6_DSJCJ.Model.ConfigEntry> configEntryList)
    {
        List<ElingOA6_DSJCJ.Model.ConfigEntry> tmpEntryList = configEntryList.Where(s => s.FDocClsCd == FDocClsCd && s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpEntryList.Count > 0)
        {
    @:@tmpEntryList[0].FShowText
        }

}
@if (false)
{
    <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
}
<script type="text/javascript">


    function openshow() {
        ASPxClientPopupControl.Cast("popfirst").Show();

    }
    function closepop() {
        ASPxClientPopupControl.Cast("popfirst").Hide();
    }

    function chgid(s, e) {

        ASPxClientPopupControl.Cast("popfirst").Hide();
        var cid = s.GetSelectedValues()[0];
        // ASPxClientScheduler.Cast("scheduler").ShowAppointmentFormByServerId(schid);
        var rtn = window.showModalDialog('@Url.Content("/ElingOA6_Admin_DSJCJ/Admin/Calendar/CalendarLook?cid=")' + cid, window, "dialogWidth=800px;dialogHeight=400px");
        if (rtn == "back") {
            ASPxClientPopupControl.Cast("popfirst").Show();
        }
       if(typeof(rtn)=="undefined") {
           popContent.myInterval();
           
       }
    }

</script>
<script type="text/javascript">
   
   
   
    $(function () {
        if ('@ViewData["EmpName"].ToString()' != "") {
            loginShow('@ViewData["EmpName"]', '@ViewData["DeptName"]');
        } else {
            logShow();
        }
        var birthNames = "@BirthNames";
        if (birthNames != "") {
            showBirth();
        }
    });


    /*搜索*/
    function ToAdmin() {

    window.open('@Url.Content("/ElingOA6_Admin_DSJCJ")');
       
    }
    function login() {
        if ($.trim($("#txtUserName").val()) == "") {
            alert("用户名不能为空");
            $("#txtUserName").focus();
            return false;
        }
        else {
            $.ajax({
                type: "Post",
                url: "/Index/Login",
                data: { logId: $.trim($("#txtUserName").val()), password: $.trim($("#txtPassword").val()) },
                success: function (result) {
                    if (result.indexOf('^') != -1) {
                        window.location.reload();
                    }
                    else {
                        alert(result);

                    }

                }
            });
        }
        return true;
    }
    function keyPress() {
        if (event.keyCode && event.keyCode == 13) {
            login();
        }
    }
    function loginExit() {
        if (confirm("确定退出吗?")) {
            window.location.href = "/Index/LogExit";

        }
        else {
            return false;
        }
    }

    function logShow() {
        document.getElementById("logInput").style.display = "block";
        document.getElementById("logSuccess").style.display = "none";
        document.getElementById("logInput_sso").style.display = "block";
        document.getElementById("logSuccess_sso").style.display = "none";

    }

    function loginShow(empName, deptName) {
        document.getElementById("logInput").style.display = "none";
        document.getElementById("logSuccess").style.display = "block";
        document.getElementById("logInput_sso").style.display = "none";
        document.getElementById("logSuccess_sso").style.display = "block";
        document.getElementById("rlglhref").style.display = "block";

    }

    /*显示生日祝福*/
    function showBirth() {
        $('.birthday').css('left', ($(window).width() - $('.birthday').width()) / 2);
        $('.birthday').css('top', ($(window).height() - $('.birthday').height()) / 2);
        $('.birthday').fadeIn(5000);
       
    
    }
    /*隐藏生日祝福*/
    function closeBirth() {
        $('.birthday').stop().slideUp(1000);

        bgs.pause()
     
    }
  
  
    function thisMovie(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
            return window[movieName]
        }
        else {
            return document[movieName]
        }
    }
</script>






<div class="content">
 


    <!-- 单句 开始 -->
<div class="box">
<div class="Date">今天是：@ViewData["nyr"]</div>
<marquee direction="left" style=" width:490px; float:left;" scrollamount="2" >@Html.Raw(ViewData["phrase"].ToString())</marquee>
</div>
<!-- 单句 结束 -->
    <!--图片新闻-->
    <div class="picnews">
        <div class="pic">
            <div class="sub_box">
                <div id="p-select" class="sub_nav">
                    <div class="sub_more">
                        <a style="font-family: Tahoma; font-size: 12px;" onfocus="this.blur()" title="" href="/Index/DocPicList?keyName=doc_link1&keyClass=04"
                            target="_blank">更多&gt;&gt;</a></div>
                    <div id="bd1lfsj" class="sub_no">
                        @Html.Raw(@ViewData["Select_btn"].ToString())
                    </div>
                </div>
                <div id="bd1lfimg">
                    @Html.Raw(@ViewData["Picshow_img"].ToString())
                </div>
            </div>
            <script type="text/javascript">                movec();</script>
        </div>
        <div class="hot">
            <div style="margin-top: 10px;" class="news_c">
                <ul>
                    @{documentList = new List<DocumentGridModel>();
                      key = "doc_link1_042";
                      if (Model.ContainsKey(key))
                      {
                          documentList = Model[key].Take(8).ToList();
                      }
                                                          
                    }
                    @foreach (DocumentGridModel documentModel in documentList)
                    {
                        <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                    }
                </ul>
            </div>
        </div>
    </div>
    <!--图片新闻 END-->
    <!--通知公告-->

    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link2" && c.FConfigClass == "04").ToList()).Take(2).ToList();

      entryCount = 0;
    }
    <div style="width: 364px;" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link2", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link2&keyClass=04" target="_blank">更多>></a></span></div>
         <div id="Tab1">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount2 = "four" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="four1" class="hover" onclick="setTab('four',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount2" onclick="setTab('four',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_four_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link2_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one2 = "con_four_" + entryCount;
                        
                                                
                    <div style="display: none;" id="@strcon_one2">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link2_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                        
                    }
                }
            </div>
        </div>
    
    </div>
    <!--通知公告 END-->
    <!--稽查信息-->
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link3" && c.FConfigClass == "04").ToList()).Take(4).ToList();

      entryCount = 0;
    }
    <div style="width: 364px;" class="news ml10">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link3", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link3&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab1">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount = "one" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="one1" class="hover" onclick="setTab('one',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount" onclick="setTab('one',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_one_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link3_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one = "con_one_" + entryCount;
                        
                                                
                    <div style="display: none;" id="@strcon_one">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link3_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                        
                    }
                }
            </div>
        </div>
    </div>
    <!--稽查信息 END-->
    <!--工作动态-->
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link4" && c.FConfigClass == "04").ToList()).Take(4).ToList();

      entryCount = 0;
    }
    <div style="width: 364px;" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link4", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link4&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab2">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount = "two" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="two1" class="hover" onclick="setTab('two',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount" onclick="setTab('two',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_two_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link4_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one = "con_two_" + entryCount;
                        
                                                
                    <div style="display: none;" id="@strcon_one">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link4_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                        
                    }
                }
            </div>
        </div>
    </div>
    @* <div style="width: 364px;" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link3", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link3&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab2">
            <div class="Menubox">
                <ul>
                    <li id="two1" class="hover" onclick="setTab('two',1,3)">重点工作</li>
                    <li id="two2" onclick="setTab('two',2,3)">作风建设</li>
                    <li id="two3" onclick="setTab('two',3,3)">党工群妇</li>
                </ul>
            </div>
            <div class="Contentbox">
                <div id="con_two_1" class="hover">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_two_2">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_two_3">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>*@
    <!--工作动态 END-->
    <!--稽查案例库-->
    <div style="width: 364px;" class="news ml10">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link5", "04", configList)</h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link5&keyClass=04" target="_blank">更多>></a></span></div>
        <div class="news_c">
            <ul>
                @{documentList = new List<DocumentGridModel>();
                  key = "doc_link5_04";
                  if (Model.ContainsKey(key))
                  {
                      documentList = Model[key];
                  }
                                                          
                }
                @foreach (DocumentGridModel documentModel in documentList)
                {
                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                }
            </ul>
        </div>
    </div>
    <!--稽查案例库 END-->
    <!--学习园地-->
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link6" && c.FConfigClass == "04").ToList()).Take(8).ToList();

      entryCount = 0;
    }
    <div style="width: 740px; margin-bottom: 0px; height: 350px;" class="news">
        <div class="news_t">
            <h2>
                @GetConfigShowText("doc_link6", "04", configList)</h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link6&keyClass=04">更多&gt;&gt;</a></span></div>
        <div id="Tab3">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string threeCount = "three" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="three1" class="hover" onclick="setTab('three',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@threeCount" onclick="setTab('three',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_three_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link6_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_three = "con_three_" + entryCount;
                        
                                                
                    <div style="display: none;" id="@strcon_three">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link6_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                        
                    }
                }
            </div>
        </div>
    </div>
    @* <div style="width: 740px; margin-bottom: 0px;" class="news">
        <div class="news_t">
            <h2>
                学习园地</h2>
            <span><a href="#">更多&gt;&gt;</a></span></div>
        <div id="Tab3">
            <div class="Menubox">
                <ul>
                    <li id="three1" class="hover" onclick="setTab('three',1,4)">政治学习</li>
                    <li id="three2" onclick="setTab('three',2,4)">业务学习</li>
                    <li id="three3" onclick="setTab('three',3,4)">理论调研</li>
                    <li id="three4" onclick="setTab('three',4,4)">生活小贴士</li>
                </ul>
            </div>
            <div class="Contentbox">
                <div id="con_three_1" class="hover">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_2">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_3">
                    <div class="news_c2">
                        <ul>
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link4_04";
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                                          
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_4">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>*@
    <!--学习园地 END-->
    <div class="clear">
    </div>
</div>
<div class="sidebar">
    <!--智慧财税-->
    <div style="float: left;">
        <div id="logInput_sso" style="display: block">
            <a href="@zhcsUrl" target="_blank">
                <img src="/Content/images/PleaseLogin.jpg" alt="点击进入" /></a>
        </div>
        <div id="logSuccess_sso" style="display: none">
            <a href="@zhcsUrl" target="_blank">
                <img src="/Content/images/HasLogin.jpg" alt="点击进入" /></a>
        </div>
    </div>
    <!--智慧财税 END-->
    <!--4个外链按钮-->
    <div class="sidebar_link">
        <a href="@GetConfigValue("link_link1", "02", configList)" target="_blank">
            <img src="content/images/001.jpg"></a> <a href="@GetConfigValue("link_link2", "02", configList)" target="_blank">
                <img src="content/images/002.jpg"></a> <a href="@GetConfigValue("link_link3", "02", configList)" target="_blank">
                    <img src="content/images/003.jpg"></a> <a href="@GetConfigValue("link_link4", "02", configList)" target="_blank">
                        <img src="content/images/004.jpg"></a><a href="@Url.Content("/ElingOA6_Admin_DSJCJ/?fFunctNo=m_Calendar")" target="_blank" id="rlglhref" style="display: none">
                            <img src="content/images/rlgl.jpg"></a>
    </div>
    <!--4个外链按钮 END-->
    <!--用户登录-->
    <div class="sidebar_div">
        <div class="sidebar_div_t">
            <h2 style="color:#146fb6">
                用户登录</h2>
        </div>
        <div class="sidebar_login" id="logInput" style="display: block">
            <table border="0" width="226">
                <tbody>
                    <tr>
                        <td height="28">
                            用户名：<input name="txtUserName" id="txtUserName" tabindex="1" type="text" />
                        </td>
                        <td rowspan="2">
                            <input style="border: 0px; width: 59px; height: 56px;" src="content/images/login01.jpg"
                                type="image" onclick="return login()">
                        </td>
                    </tr>
                    <tr>
                        <td height="28">
                            密　码：<input name="txtPassword" id="txtPassword" type="password" tabindex="2" onkeypress="keyPress()" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="logSuccess" style="display: none">
            <table width="226" border="0">
                <tr>
                    <td height="30" width="165">
                        用户名：<b style="color: #0e7ad5">@ViewData["EmpName"] </b>
                    </td>
                    <td>
                        <input name="" onclick="ToAdmin()" type="image" src="content/images/login03.jpg"
                            style="width: 65px; height: 24px; border: 0;" />
                    </td>
                </tr>
                <tr>
                    <td height="28">
                        部 &nbsp; 门：<b style="color: #0e7ad5">@ViewData["DeptName"]</b>
                    </td>
                    <td>
                        <input name="" onclick="loginExit()" type="image" src="content/images/login04.jpg"
                            style="width: 65px; height: 24px; border: 0;" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--用户登录 END-->
    <!--科室之窗-->
    <div class="sidebar_div">
        <div class="sidebar_div_t">
            <h2 style="color:#146fb6">
                科室之窗</h2>
        </div>
        <div class="kjzc">
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=02")" target='_blank'>办公室(人监科)</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=04")" target='_blank'>综合业务科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=05")" target='_blank'>执行科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=06")" target='_blank'>案审科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=07")" target='_blank'>稽查一科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=08")" target='_blank'>稽查二科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=09")" target='_blank'>稽查三科</a>
            <a href="@Url.Content("~/SubOffice/Template?FDeptNo=10")" target='_blank'>稽查四科</a>
        </div>
    </div>
    <!--科室之窗 END-->
    <!--专题活动-->
    <div class="sidebar_div">
        <div class="sidebar_div_t">
            <h2  style="color:#146fb6">
                专题活动</h2>
            <span><a href="/Column/ZtzlList" target="_blank">更多&gt;&gt;</a></span></div>
        <div class="sidebar_link zthd">
            @foreach (KeyValuePair<string, string> dicZl in zlOldDic)
            {
                <a href="/Column/ZtzlColumn?clsCd=@dicZl.Key" target="_blank">
                    <img src="@dicZl.Value" width="227px" height="47px"></a>
            }
            @* <a href="/Column/ZtzlColumn?clsCd=8001">
                <img src="content/images/zt01.jpg"></a> <a href="#">
                    <img src="content/images/zt02.jpg"></a> <a href="#">
                        <img src="content/images/zt03.jpg"></a>*@
        </div>
    </div>
    <!--专题活动 END-->
    <!--各地稽查-->
    <div class="sidebar_div">
        <div class="sidebar_div_t">
            <h2 style="color:#146fb6">
                文件上传</h2>
        </div>
        <div class="gdjc">
            @if (@ViewData["HRDept"] != null)
            {



                foreach (ElingOA6_DSJCJ.Model.HRDept m in (ViewData["HRDept"] as List<ElingOA6_DSJCJ.Model.HRDept>))
                {
                <a href="@Url.Content("~/Index/Filelook?FDeptNo=" + @m.FDeptNo)" target="_blank">@m.FDeptName</a>
            
                }
                <a href="@Url.Content("~/Index/Filelook?FNoAgency=Y")"  target="_blank">市局</a>
            }
            <input class="gdjc_upload" onclick="window.open('@Url.Content("/ElingOA6_Admin_DSJCJ/Admin/EnterpriseFTPFront/")')" src="content/images/upload.jpg" type="image">
        </div>
    </div>
    <!--各地稽查 END-->
    <!--站点导航-->
    <div style="margin-bottom: 0px;" class="sidebar_div">
        <div class="sidebar_div_t">
            <h2 style="color:#146fb6">
                站点导航</h2>
        </div>
        <div class="sidebar_link zthd">
            <a href="@GetConfigValue("link_link5", "02", configList)" target="_blank">
                <img src="content/images/link01.jpg"></a> <a href="@GetConfigValue("link_link6", "02", configList)" target="_blank">
                    <img src="content/images/link02.jpg"></a>
        </div>
    </div>
    <!--站点导航 END-->
</div>
</div>
<script type="text/javascript">
    swfobject.registerObject("FlashID");
</script>
@{
    List<ElingOA6_DSJCJ.Model.Ad> adFDList = ViewData["adFDList"] as List<ElingOA6_DSJCJ.Model.Ad>;
    List<ElingOA6_DSJCJ.Model.Ad> adDLList = ViewData["adDLList"] as List<ElingOA6_DSJCJ.Model.Ad>;
    List<ElingOA6_DSJCJ.Model.Ad> adQPList = ViewData["adQPList"] as List<ElingOA6_DSJCJ.Model.Ad>;
              
              
}
<!--浮动图片 -->
<div>
    @for (int i = 0; i <= adFDList.Count() - 1; i++)
    {
        int imgWidth = null == adFDList[i].FAdWidth ? 0 : adFDList[i].FAdWidth.Value;
        int imgHeight = null == adFDList[i].FAdHeight ? 0 : adFDList[i].FAdHeight.Value;
        string imgUrl = adFDList[i].FSvrFileName == "" ? "##" : adFDList[i].FSvrFileName;
        string divid = "ad" + i;
        string closeDivId = "close" + i;
        <div id="@divid" style="z-index: 1001; position: absolute; text-align: right">
            <!--浮动开始-->
            <div id="@closeDivId" style="position: absolute; width: 100%" align="right">
                <img src="/Content/images/del.gif" border="0" style="cursor: pointer" onclick="document.getElementById('@divid').style.display='none'" />
            </div>
            @if (@adFDList[i].FAdUrl == "javaccript:;")
            {
                 <img src="@imgUrl" width="@imgWidth" height="@imgHeight" border="0" /> 
            }
            else
            { 
            <a href="@adFDList[i].FAdUrl" target="@adFDList[i].FAdUrl">
                <img src="@imgUrl" width="@imgWidth" height="@imgHeight" border="0" />
                @*<img src="@imgUrl" width="@imgWidth" height="@imgHeight" border="0" />*@ </a>
            
            }<!--浮动结束-->
        </div>

        <script type="text/javascript">
            document.getElementById("@divid").style.width = "@imgWidth" + "px";
        </script>

    }
    <script type="text/javascript">
        var ct = "@adFDList.Count()";
        for (var i = 0; i < ct; i++) {
            var ad = new AdMove("ad" + i);
            ad.Run();
        }
    </script>
</div>
<!--对联广告 -->
@foreach (var item in adDLList)
{
    <div id="LeftDiv" style="position: absolute; border: 1px solid #336699; background-color: #EEEEE2;
        z-index: 1000; top: -1000px; word-break: break-all; display: none;" runat="server">
        <div align="right" style="position: absolute; top: 0px; right: 0px; margin: 2px;
            padding: 2px; z-index: 2000;">
            <a href="javascript:;" onclick="hidead()" style="color: red; text-decoration: none;
                font-size: 12px;">关闭</a>
        </div>
        <div>
            <div align="center">
               

 @if (item.leftHRef == "javaccript:;")
 {
                    <img id="leftImage" width="@item.leftWidth" height="@item.leftHeight" src="@item.leftImageUrl"  /> 
 }
 else
 { 
                    <a runat="server" id="leftA" href="@item.leftHRef" target="@item.leftTarget">
                        <img id="leftImage" width="@item.leftWidth" height="@item.leftHeight" src="@item.leftImageUrl"  />
                    </a>
 }

            </div>
        </div>
    </div>
    <div id="RightDiv" style="position: absolute; border: 1px solid #336699; background-color: #EEEEE2;
        z-index: 1000; top: -1000px; word-break: break-all; display: none;" runat="server">
        <div align="right" style="position: absolute; top: 0px; right: 0px; margin: 2px;
            padding: 2px; z-index: 2000;">
            <a href="javascript:;" onclick="hidead()" style="color: red; text-decoration: none;
                font-size: 12px;">关闭</a>
        </div>
        <div>
            <div align="center">
                

   @if (item.rightHRef == "javaccript:;")
   {
                    <img id="rightImage" width="@item.rightWidth" height="@item.rightHeight" src="@item.rightImageUrl" />
   }
   else
   { 
                    <a runat="server" id="rightA" href="@item.rightHRef" target="@item.rightTarget">
                        <img id="rightImage" width="@item.rightWidth" height="@item.rightHeight" src="@item.rightImageUrl" />
                    </a>
   }

            </div>
        </div>
    </div>
}
@if (adDLList.Count() > 0)
{
    @Html.Hidden("hidCouPleZt", ViewData["hidCouPleZt"])
    <script src="@Url.Content("~/Scripts/coupletImg.js")" type="text/javascript"></script>
}
<!--生日祝福-->
@*<div class="birthday" style="display:none;width:550px; height:420px;background: url(@Url.Content("~/Content/images/birthday.jpg"));  position:absolute; z-index:99999;">
    <div class="birthday-name" style="margin: 237px 0 0 265px; width: 160px; float: left;
        font-size: 20px; font-weight: bold; color: #e10314;">
        <span style="padding-right: 10px;">@BirthNames</span></div>
    <div class=" birthday-down" style="width: 22px; height: 22px; float: right; cursor: pointer;"
        onclick="closeBirth();">
        <img src="@Url.Content("~/Content/images/birthClose.png")" border="0" ></div>
</div>*@


<div class="birthday" style="display:none;">
	<div class="close"><img src="@Url.Content("~/Content/birthday/close.png")"  onclick="closeBirth();"></div>
    <div class="name">祝：@BirthNames</div>
  <object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="420">
	  <param name="movie" value="@Url.Content("~/Content/birthday/happybirth.swf")" />
	  <param name="quality" value="high" />
	  <param name="wmode" value="opaque" />
	  <param name="swfversion" value="11.0.0.0" />
	  <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
	  <param name="expressinstall" value="Scripts/expressInstall.swf" />
	  <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
	  <!--[if !IE]>-->
	  <object type="application/x-shockwave-flash" data="@Url.Content("~/Content/birthday/happybirth.swf")" width="550" height="420">
	    <!--<![endif]-->
	    <param name="quality" value="high" />
	    <param name="wmode" value="opaque" />
	    <param name="swfversion" value="11.0.0.0" />
	    <param name="expressinstall" value="Scripts/expressInstall.swf" />
	    <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
	    <div>
	      <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
	      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
        </div>
	    <!--[if !IE]>-->
    </object>
	  <!--<![endif]-->
  </object>
</div>

@if (!string.IsNullOrEmpty(@BirthNames))
{ 
@:<embed src="@Url.Content("~/Content/birthday/music.mp3")"  id="bgs" hidden="true" autostart="true" loop="true"></embed>
}

<script type="text/javascript">
var birthNames = "@BirthNames";
if (birthNames != "") {
    swfobject.registerObject("FlashID2");
}
</script>
@if (!string.IsNullOrEmpty(OperateSession.get(GlobalConstant.PARAM_LOGINID)))
{ 
 
            
    @Html.DevExpress().PopupControl(
            settings =>
            {
                settings.Name = "popfirst";
                settings.Styles.Header.Paddings.PaddingBottom = 0;
                settings.Styles.Header.Paddings.PaddingLeft = 240;
                settings.EnableAnimation = false;
                settings.EnableClientSideAPI = true;
                settings.ShowHeader = true;
                settings.Width = System.Web.UI.WebControls.Unit.Pixel(500);
                settings.Height = System.Web.UI.WebControls.Unit.Pixel(218);
                settings.LoadingPanelText = "更新中";
                settings.ShowLoadingPanel = true;
                //  settings.Modal = true;
                settings.Styles.Content.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);
                settings.Styles.Content.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
                // settings.Styles.Footer.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Top;
                // settings.Styles.Footer.Paddings.PaddingBottom = 0;
                // settings.Styles.Footer.Paddings.Padding =0;
                settings.ControlStyle.Paddings.Padding = 0;
                //  settings.Styles.Content.Paddings.PaddingBottom=System.Web.UI.WebControls.Unit.Pixel(0);
                settings.CloseAction = CloseAction.CloseButton;
                settings.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
                settings.PopupVerticalAlign = PopupVerticalAlign.WindowCenter;
                settings.HeaderText = "提醒";
                settings.ShowFooter = false;

                settings.SetContent(() =>
                {
                    ViewContext.Writer.Write("<iframe  id='popContent' name='popContent'scrolling='no' style='width:502px;height:220px;margin-bottom: -3px;' frameborder='0'src='" + @Url.Content("/ElingOA6_Admin_DSJCJ/Admin/Calendar/remindpopup") + "' ></iframe>");
                    // Html.RenderPartial("remindpopup", ViewData["rmdcdr"]);

                });
            }).GetHtml()
}
<div style="display: none;">
    本页面运行时间：@ViewData["RunTime"]</div>
